home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / CGIshell 1.3.2 / Pocket 6.5 / Extensions / Apple Events / About AppleEvents next >
Text File  |  1994-12-10  |  2KB  |  51 lines

  1. Apple Events are a System 7 feature that allows programs to share data with
  2. other programs. Pocket Forth supports the required suite of Apple Events
  3. and has the ability to define new Apple Events.  This gives Pocket Forth
  4. the ability to be 'scripted' by programs such as Userland's Frontierâ„¢, and
  5. Apple's HyperCard and Apple Script.
  6.  
  7. Scripting gives you the ability to automate your interaction with Pocket
  8. Forth. The Apple Events folder contains a text file, "AppleEvents", to
  9. define three new events, a HyperCard stack, "AETest", to demonstrate the
  10. events and a Frontier install script named "pf.Frontier" that facilitates
  11. writing Frontier scripts to control Pocket Forth.
  12.  
  13. Release 6.4 of Pocket Forth, HyperCard 2.1 and/or Userland's Frontier are
  14. required. To use AppleScript, Script Editor 1.0.1 or Frontier 3.0 must also
  15. be installed.
  16.  
  17.  
  18. For Frontier:
  19. See the Install Script section of the Frontier User Guide for instructions
  20. on how to install pf.frontier.
  21.  
  22. Once you have installed the new verbs, type the following line into the
  23. Quick Script window:
  24.                           pf.examples.extend()
  25.  
  26. When Pocket Forth asks if you are running a copy tell it to continue if you
  27. are.
  28.      Quit immediately if you are running the original!
  29.  
  30. To see the good stuff, open the system.verbs.apps.pf table within Frontier.
  31. Read the ReadMe entry, then run the Example scripts.
  32.  
  33.  
  34. For HyperCard and AppleScript:
  35. Make a copy of Pocket Forth named "Pocket Forth copy", then drag the file
  36. AppleEvents to the icon of "Pocket Forth copy".
  37.  
  38. When Pocket Forth asks if you are running a copy tell it to continue if you
  39. are.
  40.      Quit immediately if you are running the original!
  41.  
  42. For HyperCard:
  43. Double click on the "AETest" stack, and play with the event buttons.
  44. HyperCard may ask you to locate "Pocket Forth copy" the first time you run
  45. the stack.
  46.  
  47. For AppleScript:
  48. Double click on the AppleScripts icon, then select Run from the Apple
  49. Script Editor window.  The sequence:  Do Script "Pocket Forth words" will
  50. cause the quoted text to be interpreted by Pocket Forth.
  51.